// vite.config.js
import { defineConfig, loadEnv } from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import AutoImport from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/unplugin-vue-components/dist/resolvers.js";
import { createHtmlPlugin } from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/vite-plugin-html/dist/index.mjs";
import postcssPresetEnv from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/postcss-preset-env/dist/index.mjs";
import postcssPxtorem from "file:///D:/%E9%A1%B9%E7%9B%AE/pc-%E6%94%B6%E9%93%B6/gmt_rms/node_modules/postcss-pxtorem/index.js";
var __vite_injected_original_dirname = "D:\\\u9879\u76EE\\pc-\u6536\u94F6\\gmt_rms";
var vite_config_default = defineConfig(({ command, mode }) => {
  const env = loadEnv(mode, process.cwd(), "");
  return {
    resolve: {
      alias: {
        "@": path.resolve(__vite_injected_original_dirname, "./src")
      },
      extensions: [".js", ".jsx", ".json"]
    },
    plugins: [
      // {
      //   order: 1, // 使用 order 选项指定生成顺序
      //   transform: (html) => html,
      // },
      vue(),
      AutoImport({
        resolvers: [ElementPlusResolver()],
        imports: [
          "vue",
          "vue-router"
        ]
      }),
      Components({
        resolvers: [ElementPlusResolver()]
      }),
      createHtmlPlugin({
        minify: true,
        template: "index.html",
        inject: {
          data: {
            title: ""
          }
        }
      })
    ],
    css: {
      // 预处理器的配置选项
      // preprocessorOptions: {
      //   scss: {
      // // 全局变量或引入全局变量名
      // additionalData: `$injectedColor: orange;`
      //   }
      // },
      postcss: {
        plugins: [
          postcssPresetEnv(),
          postcssPxtorem({
            rootValue: 192,
            // 根据你的需要设定一个rootValue，设计稿中的px值除以这个rootValue会转换成rem单位  正常32 后面调一调
            propList: ["*"],
            // 需要做转换的属性*，表示全部  
            minPixelValue: 2,
            // 设置要替换的最小像素值  
            selectorBlackList: ["-nopx"]
            // 黑名单，可以通过正则表达式排除某些选择器，不进行px转换  
          })
        ]
      }
    },
    server: {
      // host: '0.0.0.0',
      open: true,
      //vite项目启动时自动打开浏览器
      proxy: {
        "/api": {
          // 配置接口调用目标地址
          target: env.VITE_BASE_API,
          // 当进行代理时，在本地会创建一个虚拟服务端，然后发送请求的数据，并同时接收请求的数据，这样服务端和服务端进行数据的交互就不会有跨域问题
          changeOrigin: true,
          // 替换target中的请求地址，请求时以 /api 开头
          rewrite: (path2) => path2.replace(/^\/api/, "")
        }
      }
    },
    build: {
      // 构建后是否生成 source map 文件, boolean | 'inline' | 'hidden'
      sourcemap: false,
      //自定义底层的 Rollup 打包配置
      rollupOptions: {
        // external: ['@chenfengyuan/vue-qrcode'],
        output: {
          chunkFileNames: "static/js/[name]-[hash].js",
          entryFileNames: "static/js/[name]-[hash].js",
          assetFileNames: "static/[ext]/[name]-[hash].[ext]"
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxcdTk4NzlcdTc2RUVcXFxccGMtXHU2NTM2XHU5NEY2XFxcXGdtdF9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ZGUsIHByb2Nlc3MuY3dkKCksIFwiXCIpXHJcbiAgICByZXR1cm4ge1xyXG4gICAgICAgIHJlc29sdmU6IHtcclxuICAgICAgICAgICAgYWxpYXM6IHtcclxuICAgICAgICAgICAgICAgICdAJzogcGF0aC5yZXNvbHZlKF9fZGlybmFtZSwgJy4vc3JjJylcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgZXh0ZW5zaW9uczogWycuanMnLCAnLmpzeCcsICcuanNvbiddLFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgcGx1Z2luczogW1xyXG4gICAgICAgICAgICAvLyB7XHJcbiAgICAgICAgICAgIC8vICAgb3JkZXI6IDEsIC8vIFx1NEY3Rlx1NzUyOCBvcmRlciBcdTkwMDlcdTk4NzlcdTYzMDdcdTVCOUFcdTc1MUZcdTYyMTBcdTk4N0FcdTVFOEZcclxuICAgICAgICAgICAgLy8gICB0cmFuc2Zvcm06IChodG1sKSA9PiBodG1sLFxyXG4gICAgICAgICAgICAvLyB9LFxyXG4gICAgICAgICAgICB2dWUoKSxcclxuICAgICAgICAgICAgQXV0b0ltcG9ydCh7XHJcbiAgICAgICAgICAgICAgICByZXNvbHZlcnM6IFtFbGVtZW50UGx1c1Jlc29sdmVyKCldLFxyXG4gICAgICAgICAgICAgICAgaW1wb3J0czogW1xyXG4gICAgICAgICAgICAgICAgICAgICd2dWUnLFxyXG4gICAgICAgICAgICAgICAgICAgICd2dWUtcm91dGVyJyxcclxuICAgICAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICBDb21wb25lbnRzKHtcclxuICAgICAgICAgICAgICAgIHJlc29sdmVyczogW0VsZW1lbnRQbHVzUmVzb2x2ZXIoKV0sXHJcbiAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICBjcmVhdGVIdG1sUGx1Z2luKHtcclxuICAgICAgICAgICAgICAgIG1pbmlmeTogdHJ1ZSxcclxuICAgICAgICAgICAgICAgIHRlbXBsYXRlOiAnaW5kZXguaHRtbCcsXHJcbiAgICAgICAgICAgICAgICBpbmplY3Q6IHtcclxuICAgICAgICAgICAgICAgICAgICBkYXRhOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAnJyxcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICB9KSxcclxuICAgICAgICBdLFxyXG4gICAgICAgIGNzczoge1xyXG4gICAgICAgICAgICAvLyBcdTk4ODRcdTU5MDRcdTc0MDZcdTU2NjhcdTc2ODRcdTkxNERcdTdGNkVcdTkwMDlcdTk4NzlcclxuICAgICAgICAgICAgLy8gcHJlcHJvY2Vzc29yT3B0aW9uczoge1xyXG4gICAgICAgICAgICAvLyAgIHNjc3M6IHtcclxuICAgICAgICAgICAgLy8gLy8gXHU1MTY4XHU1QzQwXHU1M0Q4XHU5MUNGXHU2MjE2XHU1RjE1XHU1MTY1XHU1MTY4XHU1QzQwXHU1M0Q4XHU5MUNGXHU1NDBEXHJcbiAgICAgICAgICAgIC8vIGFkZGl0aW9uYWxEYXRhOiBgJGluamVjdGVkQ29sb3I6IG9yYW5nZTtgXHJcbiAgICAgICAgICAgIC8vICAgfVxyXG4gICAgICAgICAgICAvLyB9LFxyXG4gICAgICAgICAgICBwb3N0Y3NzOiB7XHJcbiAgICAgICAgICAgICAgICBwbHVnaW5zOiBbXHJcbiAgICAgICAgICAgICAgICAgICAgcG9zdGNzc1ByZXNldEVudigpLFxyXG4gICAgICAgICAgICAgICAgICAgIHBvc3Rjc3NQeHRvcmVtKHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcm9vdFZhbHVlOiAxOTIuMCwgLy8gXHU2ODM5XHU2MzZFXHU0RjYwXHU3Njg0XHU5NzAwXHU4OTgxXHU4QkJFXHU1QjlBXHU0RTAwXHU0RTJBcm9vdFZhbHVlXHVGRjBDXHU4QkJFXHU4QkExXHU3QTNGXHU0RTJEXHU3Njg0cHhcdT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C9hcGkvLCAnJyksXHJcbiAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSxcclxuICAgICAgICBidWlsZDoge1xyXG4gICAgICAgICAgICAvLyBcdTY3ODRcdTVFRkFcdTU0MEVcdTY2MkZcdTU0MjZcdTc1MUZcdTYyMTAgc291cmNlIG1hcCBcdTY1ODdcdTRFRjYsIGJvb2xlYW4gfCAnaW5saW5lJyB8ICdoaWRkZW4nXHJcbiAgICAgICAgICAgIHNvdXJjZW1hcDogZmFsc2UsXHJcbiAgICAgICAgICAgIC8vXHU4MUVBXHU1QjlBXHU0RTQ5XHU1RTk1XHU1QzQyXHU3Njg0IFJvbGx1cCBcdTYyNTNcdTUzMDVcdTkxNERcdTdGNkVcclxuICAgICAgICAgICAgcm9sbHVwT3B0aW9uczoge1xyXG4gICAgICAgICAgICAgICAgLy8gZXh0ZXJuYWw6IFsnQGNoZW5mZW5neXVhbi92dWUtcXJjb2RlJ10sXHJcbiAgICAgICAgICAgICAgICBvdXRwdXQ6IHtcclxuICAgICAgICAgICAgICAgICAgICBjaHVua0ZpbGVOYW1lczogJ3N0YXRpYy9qcy9bbmFtZV0tW2hhc2hdLmpzJyxcclxuICAgICAgICAgICAgICAgICAgICBlbnRyeUZpbGVOYW1lczogXCJzdGF0aWMvanMvW25hbWVdLVtoYXNoXS5qc1wiLFxyXG4gICAgICAgICAgICAgICAgICAgIGFzc2V0RmlsZU5hbWVzOiBcInN0YXRpYy9bZXh0XS9bbmFtZV0tW2hhc2hdLltleHRdXCJcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH1cclxufSkiXSwKICAibWFwcGluZ3MiOiAiO0FBQW1SLFNBQVMsY0FBYyxlQUFlO0FBQ3pULE9BQU8sU0FBUztBQUNoQixPQUFPLFVBQVU7QUFDakIsT0FBTyxnQkFBZ0I7QUFDdkIsT0FBTyxnQkF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